#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void getMax(float* arr, int n, float* pMax)
{
	int i;
	for (i = 0; i < 10; i++)
	{

		if (*pMax < arr[i])
		{
			pMax = &arr[i];
		}
	}
	printf("%x", pMax);
	printf(" %f", *pMax);
}

float* getMin(float* arr, int n)
{
	int i;
	float* pMin = &arr[0];
	for (i = 0; i < 10; i++)
	{

		if (*pMin > arr[i])
		{
			pMin = &arr[i];
		}
	}
	return pMin;
}

int main()
{
	float arr[10] = { 5,2,3,4,5,10,7,8,9,10 };
	float* pMax = &arr[0];
	float* pMin = NULL;
	getMax(arr, 10, pMax);
	pMin=getMin(arr, 10);
	printf("\n");
	printf("%x", pMin);
	printf(" %f", *pMin);
}